package com.jic.order.service;

import com.jic.common.base.vo.PageResult;
import com.jic.order.entity.OrderBale;
import com.jic.order.manage.request.OrderBaleRequest;
import com.jic.order.manage.response.OrderBaleResponse;
import com.jic.order.rest.request.OrderBaleRestRequest;
import com.jic.order.rest.response.OrderBaleInfoResponse;
import java.util.List;

/**
 * 包裹表
 *
 * @author : yinhaijun
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-15 07:06:30
 */
public interface OrderBaleService {

    long insert(OrderBaleRequest obr);

    long update();

    OrderBale queryByPrimaryKey(Long id);

    List<OrderBale> query(OrderBale orderBale);

    PageResult<OrderBaleResponse> queryPage(OrderBaleRequest obr);

    /**
     * 根据订单号查询包裹信息
     *
     * @param orderBaleRestRequest
     * @return
     */
    OrderBaleInfoResponse getDeliveryByOrderNo(OrderBaleRestRequest orderBaleRestRequest);

    long merge(OrderBaleRequest obr);
}
